package cn.lili.modules.dto;

import cn.lili.modules.entity.AppUser;
import lombok.Data;

/**
 * @author:xiangqian
 * @date: 2024/3/8 20:38
 */
@Data
public class PublisherDTO {

    private String head;
    private String nickname;
    private String account;
    private String gender;
    private String openid;

    public static PublisherDTO setPublisher(AppUser appUser) {
        PublisherDTO publisher = new PublisherDTO();
        publisher.setHead(appUser.getHead());
        publisher.setNickname(appUser.getAccount());
        publisher.setAccount(appUser.getAccount());
//        publisher.setAccount("**********");
        publisher.setGender(appUser.getGender());
        publisher.setOpenid(appUser.getOpenid());
        return publisher;
    }
}
